<?php
/**
 * The template for displaying the header
 * @package WordPress
 * @subpackage WP Base
 */
?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="no-js">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width">
	
	<title>
		<?php wp_title( '|', true, 'right' ); ?>
	</title>
	
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
	<!--[if lt IE 9]>
	<script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js"></script>
	<![endif]-->
	<script>(function(){document.documentElement.className='js'})();</script>
	<?php wp_head(); ?>
</head>


<?php 
global $crosstheme; 

/*echo '<pre>';
var_dump($crosstheme);
echo '</pre>';*/
$hd_layout = '';
if(isset($crosstheme['header-layout']) && $crosstheme['header-layout'] == 'boxed') {
    $hd_layout = ' crt-'.$crosstheme['header-layout'];
}
?>

<body <?php body_class(); ?>>
<div id="crt-wrapper" class="hfeed site">
	<header id="header" class="site-header<?php echo $hd_layout; ?>" role="banner">
		<div class="site-branding">
			<?php do_action('crt_header');?>
		</div><!-- .site-branding -->
	</header><!-- .site-header -->
	<?php
		$mct_layout = '';
		if(isset($crosstheme['mcontent-layout']) && $crosstheme['mcontent-layout'] == 'boxed') {
			$mct_layout = ' crt-'.$crosstheme['mcontent-layout'];
		}
	?>
	<div id="main" class="site-content<?php echo $mct_layout; ?>">